package com.whpu.admin.service;

import com.whpu.admin.mapper.AdminMapper;
import com.whpu.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Created by RiceBall on 2020/10/23 9:47
 */
@Service
public class AdminService {
    @Autowired
    private AdminMapper adminMapper;

    public List<User> login(String name, String password){
       return adminMapper.findByNameAndPwd(name,password);
    }
}
